package com.greenleaf.entity;

import org.springframework.stereotype.Component;

@Component
public class SearchCon {
private Integer page;//当前页
private Integer limit;//每页显示条数
private String name;//名字
private Integer sort;//类别
private String startTime;//开始时间
private String endTime;//截至时间
private String alternative1;//备选1
private String alternative2;//备选2
public SearchCon(Integer page, Integer limit, String name, Integer sort, String startTime, String endTime,
		String alternative1, String alternative2) {
	super();
	this.page = page;
	this.limit = limit;
	this.name = name;
	this.sort = sort;
	this.startTime = startTime;
	this.endTime = endTime;
	this.alternative1 = alternative1;
	this.alternative2 = alternative2;
}
public SearchCon() {
	super();
}
@Override
public String toString() {
	return "SearchCon [page=" + page + ", limit=" + limit + ", name=" + name + ", sort=" + sort + ", startTime="
			+ startTime + ", endTime=" + endTime + ", alternative1=" + alternative1 + ", alternative2=" + alternative2
			+ "]";
}
public Integer getPage() {
	return page;
}
public void setPage(Integer page) {
	this.page = page;
}
public Integer getLimit() {
	return limit;
}
public void setLimit(Integer limit) {
	this.limit = limit;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public Integer getSort() {
	return sort;
}
public void setSort(Integer sort) {
	this.sort = sort;
}
public String getStartTime() {
	return startTime;
}
public void setStartTime(String startTime) {
	this.startTime = startTime;
}
public String getEndTime() {
	return endTime;
}
public void setEndTime(String endTime) {
	this.endTime = endTime;
}
public String getAlternative1() {
	return alternative1;
}
public void setAlternative1(String alternative1) {
	this.alternative1 = alternative1;
}
public String getAlternative2() {
	return alternative2;
}
public void setAlternative2(String alternative2) {
	this.alternative2 = alternative2;
}

}
